'''
Created on 2009-11-21

@author: LiPengYu
'''
import cherrypy
import environment
from abio import sys
from abio import file
from pyamf.remoting.gateway.wsgi import WSGIGateway


if __name__ == '__main__':
    cherrypy.tree.mount(sys.url(), '/sys/')
    cherrypy.tree.mount(file.url(), '/file/')
    cherrypy.tree.graft(WSGIGateway(file.amf), "/file/amf/")
    cherrypy.quickstart(config=environment.cherrypy)

